import request from '@/utils/request'

/**
 * 查询华才汇盐banner分页列表
 */
export function pageListBanner(query) {
    return request({
        url: '/hchy/banner/pageList',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐banner所有列表
 */
export function listBanner(query) {
    return request({
        url: '/hchy/banner/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐banner详细
 */
export function getBanner(id) {
    return request({
        url: '/hchy/banner/' + id,
        method: 'get'
    })
}

/**
 * 新增华才汇盐banner
 */
export function addBanner(data) {
    return request({
        url: '/hchy/banner',
        method: 'post',
        data: data
    })
}

/**
 * 修改华才汇盐banner
 */
export function updateBanner(data) {
    return request({
        url: '/hchy/banner',
        method: 'put',
        data: data
    })
}

/**
 * 删除华才汇盐banner
 */
export function delBanner(id) {
    return request({
        url: '/hchy/banner/' + id,
        method: 'delete'
    })
}
